<?php
class ModelInviterInviter extends Model {
	
    /*
 * CREATE TABLE IF NOT EXISTS `1_invite_mails` (  `id` int(11) NOT NULL AUTO_INCREMENT,  `user_id` int(11) NOT NULL,
  `mail` varchar(255) NOT NULL,
  `validate` int(11) NOT NULL,
  PRIMARY KEY (`user_id`),
  UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
    
    
    
    
    
    
	public function createVisitorTable() 
	{
$query = $this->db->query("
CREATE TABLE IF NOT EXISTS " . DB_PREFIX . "invite_mails 
(
id int(11) NOT NULL AUTO_INCREMENT,
 user_id int(11) NOT NULL,
  mail varchar(255) NOT NULL,
validate int(11) NOT NULL,
PRIMARY KEY (user_id), UNIQUE KEY id (id))
 
 ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ");
		

	{////$query = $this->db->query("CREATE TABLE IF NOT EXISTS " . DB_PREFIX .
           $query = $this->db(" id int(11) NOT NULL AUTO_INCREMENT,
                                user_id int(11) NOT NULL,
                                mail varchar(255) NOT NULL,
                                validate int(11) NOT NULL,
                                PRIMARY KEY (user_id),
                                UNIQUE KEY id (id)) 
                                ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ");
                                                                                
	}


}
}

?>